import Vue from "vue"

//引入vue-router
import VueRouter from "vue-router";

//引入路由组件

Vue.use(VueRouter);

export default new VueRouter({
    mode:"history",
    routes:[
        {
            path:"/ShouYe",
            name:"ShouYe",
            component:()=>import("../views/ShouYe.vue")
        },
        {
            path:"/FaBu",
            name:"FaBu",
            component:()=>import("../views/FaBu.vue")
        },
        {
            path:"/Car",
            name:"Car",
            component:()=>import("../views/Car.vue")
        },
        {
            path:"/Selef",
            name:"Selef",
            component:()=>import("../views/Selef.vue")
        },
        {
            path:"/",
            redirect:"ShouYe"
        }

    ]
})